a={1:[1,2],3:[3,4]}
print(a[1])

c={(1,2):1,(3,4):2}
print(c.items())

d={1:"张三",2:"李四"}
print(d[2])

e={"张三":1,"李四":2}
print(e["张三"])

D={"张三":88,"李四":90,"王五":73,"赵六":82}
D["钱七"]=90   #进行添加
D["王五"]=93
del(D["赵六"])
print(D.items())
shuzu=list(D.items())
shuzu.sort(key=lambda x:x[1],reverse=True)
l=len(shuzu)
print(l)
for i in range(l):
    name=shuzu[i][0]
    score=shuzu[i][1]
    print("{0:<10}{1:>5}".format(name,score))






# 集合
ji={"li","jun",1,2,"lin"}
print("li" in ji)
